package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class MoviePage extends InternalPage {
	

	@FindBy(linkText = "Add movie")
	public WebElement addButton;
	
	@FindBy(id = "imdbsearch")
    public WebElement imdbsearchField;
	
	@FindBy(name = "imdbid")
    public WebElement imdbidField;
	
	@FindBy(name = "name")
    public WebElement nameField;
	
	@FindBy(name = "year")
    public WebElement yearField;
	
	@FindBy(name = "duration")
    public WebElement durationField;
	
	@FindBy(name = "rating")
    public WebElement ratingField;
		
    @FindBy(id = "seen_no")
    public WebElement seenNoBox;
    
    @FindBy(id = "loaned_yes")
    public WebElement loanedYesBox;
    
    @FindBy(name = "notes")
    public WebElement notesField;
    
    @FindBy(id = "text_languages_0")
    public WebElement languagesField;

    @FindBy(name = "audio")
    public WebElement audioField; 
	
    @FindBy(name = "video")
    public WebElement videoField;
    
    @FindBy(name = "country")
    public WebElement countryField;
    
    @FindBy(name = "writer")
    public WebElement writerField;

    @FindBy(name = "music")
    public WebElement musicField;

    @FindBy(name = "submit")
    public WebElement submitButton;
    
    @FindBy(id = "search")
    public WebElement searchForm;
    
    @FindBy(linkText = "Remove")
    public WebElement removeButton;
    
    public boolean checkThisPage() {
    	return searchForm.isDisplayed();
    }

}
